package com.ontheroad.topic.service.app;

import com.ontheroad.api.request.TopicRequest;
import com.ontheroad.api.request.TopicRequest.*;
import com.ontheroad.api.response.Response;
import com.ontheroad.core.annotation.ValidateGroup;
import org.springframework.remoting.service.annotation.RemoteService;

/**
 * 话题相关接口
 * Created by kedong on 2017/10/12 0012.
 */
@RemoteService
public interface AppTopicService {

    /**
     * 获取话题列表
     *
     * @return
     */
    public Response list(TopicRequest request);


    /**
     * 话题详情
     *
     * @param request
     * @return
     */
    @ValidateGroup(groups = detail.class)
    public Response detail(TopicRequest request);


    /**
     * 创建话题
     *
     * @param request
     * @return
     */
    @ValidateGroup(groups = createTopic.class)
    public Response createTopic(TopicRequest request);
}
